From: Giovanni Campagna Date: Thu, 9 Dec 2010 17:01:27 +0000 (+0100) Subject: StIcon: fill the structure corretly in _init X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~9406 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=a2528a7a98ecb1bb5771ac9a4f594ad92f03cf71;p=gnome-shell.git StIcon: fill the structure corretly in _init GSlice already fills with zeros when allocating, but we need to set the shadow_material field appropriately. https://bugzilla.gnome.org/show_bug.cgi?id=634814 --- diff --git a/src/st/st-icon.c b/src/st/st-icon.c index 9cf2993a7..7235dc1a8 100644 --- a/src/st/st-icon.c +++ b/src/st/st-icon.c @@ -340,12 +340,11 @@ st_icon_init (StIcon *self) { self->priv = ST_ICON_GET_PRIVATE (self); - self->priv->gicon = NULL; self->priv->icon_size = DEFAULT_ICON_SIZE; self->priv->prop_icon_size = -1; self->priv->icon_type = DEFAULT_ICON_TYPE; - self->priv->icon_texture = COGL_INVALID_HANDLE; + self->priv->shadow_material = COGL_INVALID_HANDLE; self->priv->shadow_width = -1; self->priv->shadow_height = -1; }